<div  class="<?php echo ($this->isUserLogedIn() ? 'grid_12' : 'grid_16')?>">
    <form action="./photo/add/" method="post" enctype="multipart/form-data">
        <p style="display:<?php  if(isset($_GET['error'])){echo 'block';}else{echo 'none'; }; ?>;color:red;" ><?php echo $_GET['error']; ?></p>
        <div>
            <lable>Talpinti į galeriją:</lable>
            <select  name="galleryId">
                <option value="0" >Select gallery</option>
                <?php if($this->getGalleryService() != null){
                    $gallerys = $this->galleryService->getAll();
                    if($gallerys != null){
                        foreach ($gallerys as $gallery){ ?>
                <option  value="<?php echo $gallery->id; ?>"><?php echo $gallery->title; ?></option>
                <?php  }
        }
    }?>
            </select>
        </div>
        <div>
            <lable><?php echo $staticText['add_photo'][0];?>:</lable>
            <input name="photo_1" type="file"/>
        </div>
        <div>
            <lable><?php echo $staticText['add_photo'][0];?>:</lable>
            <input name="photo_2" type="file"/>
        </div>
        <div>
            <lable><?php echo $staticText['add_photo'][0];?>:</lable>
            <input name="photo_3" type="file"/>
        </div>
        <div>
            <input type="submit" value="<?php echo $staticText['add'][0];?>"/>
        </div>
    </form>
</div>

<?php if($this->isUserLogedIn()){?>
<div class="grid_4">
    <div class="box">
        <h2>
            <a id="toggle-list-items" href="#">Veiksmų sąrašas</a>
        </h2>
        <div><div id="list-items" class="block">
                <h5><?php echo $staticText['list_action'][0];?></h5>
                <ul >
                    <li>
                        <a href="./gallery/add/form/"><?php echo $staticText['new'][0];?></a>
                    </li>
                </ul>
                <h5><?php echo $staticText['record_action'][0];?></h5>
                <ul>
                    <li>
                        <a href="./photo/add/form/"><?php echo $staticText['add'][0];?></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<?php }?>